<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Ticket extends Model
{
    public function getTicketItemAttr($name)
    {
        if(!empty($name)){
            return json_decode($name);
        }else{
            return $name;
        }
    }
}
